import java.io.*;
import java.util.*;

public class ImageCompression
{
	public static void main(String[] args) throws IOException
  {
	BufferedReader in = new BufferedReader(new FileReader(new File("baboon.ascii.pgm")));
	String text = "";
	while (in.readLine()!= null)
		text = text + in.readLine();
	System.out.println(Arrays.toString(text.split("  ")));
  }
}